package com.example.mongopro.controller;
import com.example.mongopro.domain.actCustomAgent;
import com.example.mongopro.repository.actCustomAgentRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/actCustomAgent")
public class mongoController {

    @Autowired
    private actCustomAgentRepository CustomAgentRepository;

    @GetMapping
    private List<actCustomAgent> getAll(){
        return CustomAgentRepository.findAll();
    }

}
